<template>
  <div class="exit" />
</template>
<script>
export default {
  name: 'Exit',
  layout: 'blank',
  middleware: async (ctx) => {
    const { status, data } = await ctx.$axios.get('/users/exit')
    if (status === 200 && data && data.code === 0) {
      location.href = '/'
    }
  }
}
</script>
<style lang='scss'>
</style>
